<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null, false)}
        <ul class="nav nav-tabs">
            <li class="active"><a href="#info" data-toggle="tab">客户详情</a></li>
            <li><a href="#receive" data-toggle="tab">申请记录</a></li>
            <li><a href="#visit" data-toggle="tab" class="{:$auth->check('business/visit/index')?'':'hide'}">回访列表</a></li>
            <li><a href="#record" data-toggle="tab">消费记录</a></li>
            <li><a href="#order" data-toggle="tab">课程订单</a></li>
            <li><a href="#coupon" data-toggle="tab">优惠券</a></li>
            <li><a href="#commission" data-toggle="tab">提现记录</a></li>
            <li><a href="#address" data-toggle="tab">收货地址</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <!-- 客户详情 -->
            <div class="tab-pane fade active in" id="info">
                <div class="panel-body newrow prindBody">
                    <div id="InfoToolbar" class="toolbar">
                    </div>
                    <table id="InfoTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 申请记录 -->
            <div class="tab-pane fade" id="receive">
                <div class="panel-body newrow prindBody">
                    <div id="ReceiveToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="ReceiveTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 回访记录 -->
            <div class="tab-pane fade {:$auth->check('business/visit/index')?'':'hide'}" id="visit">
                <div class="panel-body newrow prindBody">
                    <div id="VisitToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;" class="btn btn-success btn-visit-add {:$auth->check('business/visit/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>
                    <table id="VisitTable" class="table table-striped table-bordered table-hover table-nowrap" width="100%"
                        data-operate-VisitEdit="{:$auth->check('business/visit/edit')}"
                        data-operate-VisitDel="{:$auth->check('business/visit/del')}"
                    >
                    </table>
                </div>
            </div>

            <!-- 消费记录 -->
            <div class="tab-pane fade" id="record">
                <div class="panel-body newrow prindBody">
                    <div id="RecordToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="RecordTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 课程订单 -->
            <div class="tab-pane fade" id="order">
                <div class="panel-body newrow prindBody">
                    <div id="SubjectToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="SubjectTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 优惠券 -->
            <div class="tab-pane fade" id="coupon">
                <div class="panel-body newrow prindBody">
                    <div id="CouponToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="CouponTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 提现记录 -->
            <div class="tab-pane fade" id="commission">
                <div class="panel-body newrow prindBody">
                    <div id="CommissionToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="CommissionTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 收获地址 -->
            <div class="tab-pane fade" id="address">
                <div class="panel-body newrow prindBody">
                    <div id="AddressToolbar" class="toolbar">
                        {:build_toolbar('refresh,add')}
                    </div>
                    <table id="AddressTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
